package o;

import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import androidx.annotation.VisibleForTesting;

class ua implements um {
    private final e ˊ = new e();
    private final ui<a, Bitmap> ˋ = new ui();

    @VisibleForTesting
    static class a implements ul {
        private int ˊ;
        private int ˋ;
        private final e ˎ;
        private Config ॱ;

        public a(e eVar) {
            this.ˎ = eVar;
        }

        public void ˎ(int i, int i2, Config config) {
            this.ˊ = i;
            this.ˋ = i2;
            this.ॱ = config;
        }

        public boolean equals(Object obj) {
            if (!(obj instanceof a)) {
                return false;
            }
            a aVar = (a) obj;
            if (this.ˊ == aVar.ˊ && this.ˋ == aVar.ˋ && this.ॱ == aVar.ॱ) {
                return true;
            }
            return false;
        }

        public int hashCode() {
            return (this.ॱ != null ? this.ॱ.hashCode() : 0) + (((this.ˊ * 31) + this.ˋ) * 31);
        }

        public String toString() {
            return ua.ˋ(this.ˊ, this.ˋ, this.ॱ);
        }

        public void ˎ() {
            this.ˎ.ॱ(this);
        }
    }

    @VisibleForTesting
    static class e extends tz<a> {
        protected /* synthetic */ ul ˏ() {
            return ॱ();
        }

        e() {
        }

        a ˋ(int i, int i2, Config config) {
            a aVar = (a) ˋ();
            aVar.ˎ(i, i2, config);
            return aVar;
        }

        protected a ॱ() {
            return new a(this);
        }
    }

    ua() {
    }

    public void ˏ(Bitmap bitmap) {
        this.ˋ.ˋ(this.ˊ.ˋ(bitmap.getWidth(), bitmap.getHeight(), bitmap.getConfig()), bitmap);
    }

    public Bitmap ॱ(int i, int i2, Config config) {
        return (Bitmap) this.ˋ.ˋ(this.ˊ.ˋ(i, i2, config));
    }

    public Bitmap ˊ() {
        return (Bitmap) this.ˋ.ˋ();
    }

    public String ˋ(Bitmap bitmap) {
        return ˎ(bitmap);
    }

    public String ˎ(int i, int i2, Config config) {
        return ˋ(i, i2, config);
    }

    public int ॱ(Bitmap bitmap) {
        return aau.ˏ(bitmap);
    }

    public String toString() {
        return "AttributeStrategy:\n  " + this.ˋ;
    }

    private static String ˎ(Bitmap bitmap) {
        return ˋ(bitmap.getWidth(), bitmap.getHeight(), bitmap.getConfig());
    }

    static String ˋ(int i, int i2, Config config) {
        return "[" + i + "x" + i2 + "], " + config;
    }
}
